package com.panasonic.web.domain.cms;

import com.panasonic.common.annotation.Excel;
import com.panasonic.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 文章对象 cms_article
 * 
 * @author lwf
 * @date 2021-11-12
 */
public class CmsArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;


    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 分类 */
    @Excel(name = "分类")
    private Long categoryId;

    /** 点击数 */
    @Excel(name = "点击数")
    private Long hit;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private Integer top;

    /** 附件信息 */
    private List<CmsAttachment> cmsAttachmentList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setHit(Long hit) 
    {
        this.hit = hit;
    }

    public Long getHit() 
    {
        return hit;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setTop(Integer top) 
    {
        this.top = top;
    }

    public Integer getTop() 
    {
        return top;
    }

    public List<CmsAttachment> getCmsAttachmentList()
    {
        return cmsAttachmentList;
    }

    public void setCmsAttachmentList(List<CmsAttachment> cmsAttachmentList)
    {
        this.cmsAttachmentList = cmsAttachmentList;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("categoryId", getCategoryId())
            .append("hit", getHit())
            .append("sort", getSort())
            .append("top", getTop())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("cmsAttachmentList", getCmsAttachmentList())
            .toString();
    }
}
